<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="navUri" content="<s:url action="list" namespace="/admin/time" />">
<title><s:if test="%{addOperation}">新增</s:if>
	<s:else>编辑</s:else>时间模板</title>
</head>
<body>
   <div class="col-md-12">
      <!-- BEGIN EXAMPLE TABLE PORTLET-->
      <div class="portlet">
         <div class="portlet-title">
            <div class="caption"><i class="icon-edit"></i><s:if test="%{addOperation}">新增</s:if><s:else>编辑</s:else>时间模板</div>
         </div>
         
         <s:form id="frm" action="save" namespace="/admin/time" method="post" enctype="multipart/form-data" cssClass="form-horizontal">
	         <div class="portlet-body">
	             	<div class="input-group">
                    	<label class="col-md-3 control-label">名称：</label>
                        <s:textfield name="template.name" cssClass="form-control" cssStyle="width: 400px" maxlength="100" />
                    </div>
                    <div class="input-group">
                       <label class="control-label col-md-3">启用：</label>
                         <div style="float: left;">
                             <div class="make-switch" data-on-label="启动" data-off-label="禁用">
                                 <s:checkbox name="template.enabled" cssClass="toggle"/>
                             </div>
                         </div>
                    </div>
                    <div class="input-group">
                       <label class="control-label col-md-3">类型：</label>
                         <div style="float: left;">
                             <div class="make-switch" data-on-label="取件" data-off-label="送件">
                                 <s:checkbox name="template.type" cssClass="toggle"/>
                             </div>
                         </div>
                    </div>
	         </div>
         
             <s:include value="/WEB-INF/jsp/admin/form-button-bar.jsp"></s:include>
         </s:form>
      </div>
      <!-- END EXAMPLE TABLE PORTLET-->
   </div>
</body>
</html>